//
//  RequestTool.swift
//  FruitJuice
//
//  Created by Rae on 2023/12/15.
//

import Foundation

#if DEBUG

#endif

let USERINFOKEY = "UserInfo"

func SaveInfo(key:String,value:Any) -> Void
{
    let userdefalut = UserDefaults.standard
    userdefalut.setValue(value, forKey: key)
}
public func GetInfo(key:String) -> Any?
{
    let userdefalut = UserDefaults.standard
    return userdefalut.value(forKey: key)
}


let BaseUrl = "http://vivi.mimodev.cn:8080"
//let BaseUrl = "https://api.candy32.com"
let firstUrl = "/v1/clientApi/auth/firstInit"
//let termUrl = "http://www.seeya312.com/terms-of-use"
//let policeUrl = "http://www.seeya312.com/privacy-policy"

let appleLoginUrl = "/v1/clientApi/auth/appleLogin"
let regUrl = "/v1/clientApi/auth/register"
let rechargeUrl = "/v1/clientApi/order/recharge"
let buyUrl = "/v1/clientApi/order/buy"

let userInfoUrl = "/v1/clientApi/user/userInfo"
let reg_infoUrl = "/v1/clientApi/user/edit_info_new"
let fansListUrl = "/v1/clientApi/user/fansList"
let friendListUrl = "/v1/clientApi/user/careList"
let blockUserList = "/v1/clientApi/user/blockUserList"
let addFriendUrl = "/v1/clientApi/user/careOrCancelUser"
let blockAnchor = "/v1/clientApi/user/blockUser"
let delAccountUrl = "/v1/clientApi/user/delAccount"
let careStateUrl = "/v1/clientApi/user/careState"
let userListUrl = "/v1/clientApi/user/userList"
let userInfosUrl = "/v1/clientApi/user/userInfos"

let uploadImageUrl = "/v1/clientApi/file/uploadImage"
let uploadFileUrl = "/v1/clientApi/file/uploadFile"

let createHouseurl = "/v1/clientApi/room/createHouse"
let houseList = "/v1/clientApi/room/houseList"
let houseCommits = "/v1/clientApi/room/houseCommits"
let addCommit = "/v1/clientApi/room/addCommit"
let favHouse = "/v1/clientApi/room/favHouse"
let favHouseList = "/v1/clientApi/room/favHouseList"
let myCaredHouseList = "/v1/clientApi/room/myCaredHouseList"

let getChatList = "/v1/clientApi/user/getChatList"
